Convert Transformer

This is the DTF string conversion transformer and it can be used to convert between various formats such as hex to string and string to hex. In the currently available functions are:

to-hex([padding])
The to-hex function obviously converts an integer to a hex format. The padding argument is optional and if set will pad the resulting number with 0's on the left side.

from-hex
The from-hex does the opposite of to-hex and converts a hexa-decimal number back to its decimal representation.

Usage Examples
Example #1
<sequence>
   
<property name="int1" value="1234" />
   
<property name="int2" value="42" />
   
<log>${int1:convert:to-hex}</log>
   
<log>${int2:convert:to-hex(4)}</log>
</sequence>
Example #2
<sequence>
   
<property name="hex1" value="FFFF" />
   
<property name="hex2" value="FFFFFFFF" />
   
<log>${hex1:convert:from-hex}</log>
   
<log>${hex2:convert:from-hex}</log>
</sequence>